# start up the game
#               build_route('buildarmy','BuildArmyHandler'),
#               build_route('battle','BattleHandler'),
#               build_route('winner','WinnerHandler'),

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from core.support import build_route, default_route, build_form
from forms.army_handler import ArmyHandler
from rooms.formlannister import FormLannisterHandler
from rooms.formstark import FormStarkHandler

# define our routes
game_routes = [
               build_route('restart','RestartHandler'),
               default_route('startingpoint', 'StartingPointHandler'),
               build_route('battle','BattleHandler'),
               build_route('lannisterwins','LannisterWinsHandler'),
               build_route('lannisterloses','LannisterLosesHandler'),
               build_route('starkwins','StarkWinsHandler'),
               build_route('starkloses','StarkLosesHandler'),
               build_form('formlannister',FormLannisterHandler),
               build_form('formstark',FormStarkHandler),
               build_form('archer',ArmyHandler)
               ]

application = webapp.WSGIApplication(game_routes, debug=True)


def main():
    run_wsgi_app(application)

if __name__ == "__main__":
    main()
